package com.bnyy.medicalHousekeeper.moudle.message.fragment;

import android.view.View;

import com.bnyy.medicalHousekeeper.base.BaseActivityImpl;
import com.bnyy.medicalHousekeeper.base.BaseFragmentImpl;
import com.bnyy.medicalHousekeeper.moudle.message.MessageManager;
import com.bnyy.medicalHousekeeper.moudle.message.activity.CreateGroupChatActivity;
import com.bnyy.message.enums.Table;
import com.bnyy.medicalHousekeeper.R;

import butterknife.OnClick;

/**
 * Author : 关炳鹏
 * Description :
 * Date : 2022/11/11
 **/
public class MessageFunctionFragment extends BaseFragmentImpl {
    @Override
    public int getLayoutId() {
        return R.layout.fragment_message_function;
    }

    @OnClick({
            R.id.bt_create_group_chat,
            R.id.bt_get_offline_chat_message,
            R.id.bt_print_db,
            R.id.bt_delete_db
    })
    public void onViewClicked(View view) {
        switch (view.getId()) {
            case R.id.bt_create_group_chat:
                BaseActivityImpl.show(mContext, CreateGroupChatActivity.class);
                break;
            case R.id.bt_get_offline_chat_message:
//                MessageManager.getOffLineChatMessage();
                break;
            case R.id.bt_print_db:
                MessageManager.printTable(Table.values());
                break;
            case R.id.bt_delete_db:
                MessageManager.deleteTable(Table.values());
                break;
        }
    }
}
